﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHModel.Entities;
using NHibernate;

namespace NHBLL
{
    public static class DocumentsService
    {
        public static IList<Documents> GetListByOrderID(int OrderID)
        {
            ISession session = NHelper.GetCurrentSession();
            IQuery iq = session.CreateQuery("from Documents where OrderID = " + OrderID);
            return iq.List<Documents>();
        }
    }
}
